<?xml version="1.0" encoding="Windows-1250"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/TR/REC-html40">
  <xsl:output method="html" encoding="windows-1250"/>

  <xsl:template match="DPOutput">
  <p>

<form action="?" method="post" name="test" onsubmit="return check(document.test)">
 <font size="+1">
   <b>Login selection</b>
 </font>
 <br>
   Any user may be granted access to the repository. The areas accessible to each individual user
   are based on rights assigned by administrators.
 </br>

 <xsl:if test="DPParam[@name='err']='exists'">
   <p>
   <font color="#ff0000">Login already used. Please pick another one.</font>
   </p>
 </xsl:if>
<input type="hidden" name="dp" value="testexists"/>
<p>
<table>
<tr>
<td>
<b><font size="-1">Login:
            </font></b><font size="-2">Code used for identifying users upon login into the system.</font></td>
</tr>
<tr>
<td>
<input type="text" name="login" size="30"/>
</td>
</tr>
<tr>
<td>
<input type="submit" value="Test availability" size="30"/>
</td>
</tr>


</table>
</p>
</form>

      <script language="JavaScript" type="text/javascript"><xsl:comment>document.test.login.focus();
           function check(f)
           {
             if(!valText(f.login,"Login")) return false;
             return true;
        }

        function valText(elem,nazev) {
        	var s=elem.value;
        	if (s.length==0 || countT(s, ' ')==s.length) {
        		alert("Must Enter: "+nazev);
        		elem.focus();
        		elem.select();
        		return false;			
        	} else 
        		return true;		 
        }
          
        function countT(s, charSet) 
        {
          var counter=0;
          for(i=0; i&lt;s.length; i++) 
          {
            if(charSet.indexOf(s.charAt(i)) > -1)
            counter++;
          }
          return counter;

        }//</xsl:comment></script>

   </p>
  </xsl:template>

  <xsl:template name="title">User Registration</xsl:template>


</xsl:stylesheet>